package com.hh.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.hh.dao.HeroDao;
import com.hh.service.HeroService;
@Service
public class HeroServiceImpl implements HeroService{
	@Autowired
	HeroDao heroDao;
	@Override
	public List findHeros() throws SQLException {
		//PageHelper.startPage(pageNum, 10);
		return heroDao.findHeros();
	}

}
